﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.Model.Enum
{
    /// <summary>
    /// 编码规则
    /// </summary>
    public enum CodeRulesType
    {
        /// <summary>
        /// 工单编码规则
        /// </summary>
        [Description("工单编码规则")]
        WorkOrder = 0,
        /// <summary>
        /// 入库单编码规则
        /// </summary>
        [Description("入库单编码规则")]
        InOrder = 1,
        /// <summary>
        /// 出库单编码规则
        /// </summary>
        [Description("出库单编码规则")]
        OutOrder = 2,
        /// <summary>
        /// 批次编码规则
        /// </summary>
        [Description("入库批次编码规则")]
        BatchNo = 3,
        /// <summary>
        ///托盘编码规则
        /// </summary>
        [Description("托盘编码规则")]
        Pallet = 4,
        /// <summary>
        /// 料箱A编码
        /// </summary>
        [Description("料箱800*600编码")]
        Box8060 = 5,
        /// <summary>
        /// 料箱B编码
        /// </summary>
        [Description("料箱600*400编码")]
        Box6040 = 6,
    }

    /// <summary>
    /// 规则
    /// </summary>
    public enum RulesType
    {
        /// <summary>
        /// 文本框
        /// </summary>
        [Description("文本框")]
        Text = 0,
        /// <summary>
        /// 年
        /// </summary>
        [Description("当前年（四位数）")]
        Year = 1,
        /// <summary>
        /// 月
        /// </summary>
        [Description("当前月（两位数）")]
        Months = 2,
        /// <summary>
        /// 日
        /// </summary>
        [Description("当前日在月中次序")]
        Day = 3,
        /// <summary>
        /// 当前小时（24小时制）
        /// </summary>
        [Description("当前小时（24小时制）")]
        Hour = 4,
        /// <summary>
        /// 当前天在本周的次序
        /// </summary>
        [Description("当前天在本周的次序")]
        WeakDay = 5,
        /// <summary>
        /// 当前年（后两位）
        /// </summary>
        [Description("当前年（后两位）")]
        YearLast = 6,
        /// <summary>
        /// 流水号
        /// </summary>
        [Description("流水号")]
        LineNumber = 7,
    }
}
